//
//  GZPopoverViewController.swift
//  sinaweibo
//
//  Created by mac book pro on 16/3/26.
//  Copyright © 2016年 finish. All rights reserved.
//

import UIKit

class GZPopoverViewController: UITableViewController {
    private let ReuseIdentifier = "ReuseIdentifier"
    let titles = ["首页","好友圈","群微博","我的微博","新浪微博"]
    override func viewDidLoad() {
        super.viewDidLoad()
        tableView.registerClass(UITableViewCell.self, forCellReuseIdentifier: ReuseIdentifier)
    }
    override func tableView(tableView: UITableView, numberOfRowsInSection section: Int) -> Int {
        return titles.count
    }
    
    override func tableView(tableView: UITableView, cellForRowAtIndexPath indexPath: NSIndexPath) -> UITableViewCell {
        let cell = tableView.dequeueReusableCellWithIdentifier(ReuseIdentifier, forIndexPath: indexPath)
        
        cell.textLabel?.text = titles[indexPath.row]
        
        return cell
    }
    
}
